using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Admin_QuanLyNhanVien : System.Web.UI.UserControl
{
    processUser puser;
    processProduct pProduct;
    protected void Page_Load(object sender, EventArgs e)
    {
        puser = new processUser();
        pProduct = new processProduct();
        if (!Page.IsPostBack)
        {
            Load_gvwUser();
            
        }
    }

    private void Load_gvwUser()
    {
        gvwUser.DataSource = puser.listUser();
        gvwUser.DataBind();
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        Response.Redirect("AdminIndex.aspx?subpara=rg");
    }

    protected void gvwUser_PageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        gvwUser.PageIndex = e.NewPageIndex;
        Load_gvwUser();
    }
}
